package com.learn.h;
import org.apache.commons.codec.digest.DigestUtils;
import org.apache.hadoop.hive.ql.exec.Description;
import org.apache.hadoop.hive.ql.exec.UDF;

@Description(name="my_md5hash",value="_FUNC_(str) - Returns the md5hex value of str")
public class MD5HashUDF extends UDF{
	public String evaluate(String in) {
		return DigestUtils.md5Hex(in);
		}

}
